package com.oocl.oopdemo.heros;

import java.util.ArrayList;
import java.util.List;

import junit.framework.TestCase;

import com.oocl.oopdemo.herosEnv.Tower;
import com.oocl.oopdemo.herosInterface.Attackable;
import com.oocl.oopdemo.herosbehavior.AttackAction;
import com.oocl.oopdemo.herosbehavior.NormalAttack;
import com.oocl.oopdemo.herosbehavior.Technical;

public class FlightClientTest extends TestCase {
	
	List<Technical> technical=new ArrayList<>();
	public void testReleaseTechnical(){
		Hero damo=new Damo();
		damo.setTechnicals(technical);
		damo.walk("up",300);
		Attackable a=new Tower();
		
		AttackAction aa=new NormalAttack();
		damo.attack(a,aa);
		
		if(damo.isAlive()){
			damo.attack(a,aa);
		}
		
	}
	
	
	

}
